home *** CD-ROM | disk | FTP | other *** search
- Path: Norway.EU.net!usenet
- From: sb@metis.no (Steinar Bang)
- Newsgroups: comp.lang.c++
- Subject: [Q] same template name with template-arg-list
- Date: 10 Jan 1996 12:03:26 +0100
- Organization: AT&T GIS Norge AS, Horten, Norway
- Sender: sb@balder.metis.no
- Message-ID: <whlong48ht.fsf@balder.metis.no>
- NNTP-Posting-Host: balder.metis.no
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- X-Newsreader: Gnus v5.0.12
-
- Is it legal in the ANSI C++ draft to have something like:
-
- template<class T> class sequence {
- public:
- sequence() ;
- };
-
- template<class T, int len> class sequence {
- public:
- sequence() ;
- };
-
- and have these two be different templates?
-
- Same template name but different argument lists should give different
- signatures, so I don't see any principal problem...?
-
- Thanx!
-
- - Steinar
-